<?php
/**
* @file $Id: logsql.inc.php 2007-10-18 anchor-sis $
* @package Anchor/SIS
* @copyright Copyright (C) 2007 Brent Larsen. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* Anchor/SIS is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.txt for copyright notices and details.
*/

function LogSql($sql)
{
	$log_file = './sql.log';
	if (file_exists($log_file)) {
		$fh = fopen($log_file, 'a'); //open for append
		fwrite($fh, $sql);
		fclose($fh);
	}
}

?>